/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package upeu.cepre.model;

import java.io.Serializable;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Elvis Zangetsu
 */
@Entity
@Table(name = "detalleperiodosede")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Detalleperiodosede.findAll", query = "SELECT d FROM Detalleperiodosede d"),
    @NamedQuery(name = "Detalleperiodosede.findByIdDetallePeriodoSede", query = "SELECT d FROM Detalleperiodosede d WHERE d.idDetallePeriodoSede = :idDetallePeriodoSede"),
    @NamedQuery(name = "Detalleperiodosede.findByIdPeriodo", query = "SELECT d FROM Detalleperiodosede d WHERE d.idPeriodo = :idPeriodo"),
    @NamedQuery(name = "Detalleperiodosede.findByIdSede", query = "SELECT d FROM Detalleperiodosede d WHERE d.idSede = :idSede")})
public class Detalleperiodosede implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "idDetallePeriodoSede")
    private String idDetallePeriodoSede;
    @Column(name = "idPeriodo")
    private String idPeriodo;
    @Column(name = "idSede")
    private String idSede;

    public Detalleperiodosede() {
    }

    public Detalleperiodosede(String idDetallePeriodoSede) {
        this.idDetallePeriodoSede = idDetallePeriodoSede;
    }

    public String getIdDetallePeriodoSede() {
        return idDetallePeriodoSede;
    }

    public void setIdDetallePeriodoSede(String idDetallePeriodoSede) {
        this.idDetallePeriodoSede = idDetallePeriodoSede;
    }

    public String getIdPeriodo() {
        return idPeriodo;
    }

    public void setIdPeriodo(String idPeriodo) {
        this.idPeriodo = idPeriodo;
    }

    public String getIdSede() {
        return idSede;
    }

    public void setIdSede(String idSede) {
        this.idSede = idSede;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idDetallePeriodoSede != null ? idDetallePeriodoSede.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Detalleperiodosede)) {
            return false;
        }
        Detalleperiodosede other = (Detalleperiodosede) object;
        if ((this.idDetallePeriodoSede == null && other.idDetallePeriodoSede != null) || (this.idDetallePeriodoSede != null && !this.idDetallePeriodoSede.equals(other.idDetallePeriodoSede))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "upeu.cepre.model.Detalleperiodosede[ idDetallePeriodoSede=" + idDetallePeriodoSede + " ]";
    }
    
}
